//
//  WNSingleImageBrowser.h
//  Whatnet_iOS
//
//  Created by 北辰 on 2019/6/10.
//  Copyright © 2019 什么网络. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN


//单张图片浏览弹窗-比如浏览头像背景图
typedef void (^WNSingleImageBrowserHiddenBlock)(void);

@interface WNSingleImageBrowser : UIView

@property(nonatomic, copy) void (^ WNChangeImageBlock)(void);

+ (instancetype)Instance;

- (void)showWithImage:(UIImage *)image isSelf:(BOOL)isSelf;

//显示单张图片,initFrame动画初始位置
- (void)showSingImage:(UIImage *)image initFrame:(CGRect)initFrame;

- (void)showSingimageName:(NSString *)imageName initFrame:(CGRect)initFrame;

//显示单张图片,initFrame动画初始位置 hidden：是否隐藏保存到相册按钮
- (void)showSingImage:(UIImage *)image initFrame:(CGRect)initFrame hiddenDownloadBtn:(BOOL)hidden hiddenBlock:(WNSingleImageBrowserHiddenBlock)block;


- (void)hidden;
@end

NS_ASSUME_NONNULL_END
